import 'package:cbec_app/generated/json/base/json_field.dart';
import 'package:cbec_app/generated/json/index_page_ad_entity.g.dart';
import 'dart:convert';
export 'package:cbec_app/generated/json/index_page_ad_entity.g.dart';

@JsonSerializable()
class IndexPageAdEntity {
  String? id = '';
  String? cd = '';
  String? md = '';
  int? df = 0;
  String? cid = '';
  String? sid = '';
  int? status = 0;
  String? name = '';
  String? fileUrl = '';
  int? jumpType = 0;
  Map? content;
  String? startdate = '';
  String? enddate = '';
  int? mainPage = 0;
  int? microPage = 0;
  int? paySuccessPage = 0;
  int? targetType = 0;
  int? pushType = 0;
  int? customizeType = 0;
  int? customizeValue = 0;
  List<dynamic>? customizeWeek = [];
  int? totalOpen = 0;
  int? pushTotal = 0;

  IndexPageAdEntity();

  factory IndexPageAdEntity.fromJson(Map<String, dynamic> json) => $IndexPageAdEntityFromJson(json);

  Map<String, dynamic> toJson() => $IndexPageAdEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
